package com._58city.spark.app.kryo;

import org.apache.spark.serializer.KryoRegistrator;

import com._58city.spark.app.dao.CpcClickValue;
import com._58city.spark.app.dao.CpcDisplayValue;
import com._58city.spark.app.dao.IMCInfoAddValue;
import com._58city.spark.app.dao.TrackValue;
import com.esotericsoftware.kryo.Kryo;

/**
 * @author lihao
 * kryo序列化的注册类，注册了的对象会用kryo序列化方式
 */
public class Registrator implements KryoRegistrator{

	public void registerClasses(Kryo kryo) {
		kryo.register(CpcClickValue.class);
		kryo.register(CpcDisplayValue.class);
		kryo.register(TrackValue.class);
		kryo.register(IMCInfoAddValue.class);
	}

}
